const User = require('./User')
const Blog = require('./Blog')

Blog.belongsTo(User, {
    foreignKey: 'userId',
    constraints: false, //不建立外键约束，只做关联查询
})
// User.hasMany(Blog)

module.exports = {
    User,
    Blog
}